<?php


namespace app\common\model;

/**
 * APP信息模型
 */
class PartnerApp extends ModelBase
{
    /**
     * @param $where
     * @param string $field
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getPartnerAppInfo($where, $field = "*")
    {
        $list = $this->field($field)->where($where)->find();
        return $list ? $list->toArray() : [];
    }
}
